package com.ym.b2b.user.dao.impl;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.ym.b2b.commons.dao.BaseDao;
import com.ym.b2b.user.dao.EmMPassPolicyDAO;
import com.ym.b2b.user.sqlbean.EmMPassPolicy;

@Repository
public class EmMPassPolicyDAOImpl<T> extends BaseDao<T> implements EmMPassPolicyDAO {

    @Override
    public int updateEmMPassPolicy(EmMPassPolicy record) throws DataAccessException {
        int rows = update("EM_M_PASS_POLICY.updateEmMPassPolicy", record);
        return rows;
    }

    @Override
    public EmMPassPolicy searchEmMPassPolicy(EmMPassPolicy record) throws DataAccessException {
        return (EmMPassPolicy) find("EM_M_PASS_POLICY.searchEmMPassPolicy", record);

    }

}
